import { request } from "@/utils/request";

export function addNav(params: Object) {
  return request({
    url: "api/nav/addNav.php",
    method: "GET",
    params,
  });
}
export function getNav(params: Object) {
  return request({
    url: "api/nav/getAllNav.php",
    method: "GET",
    params,
  });
}

export function GetNavInfo(params: any) {
  return request({
    url: `api/nav/getOneNav.php`,
    method: "GET",
    params,
  });
}
export function EditNavInfo(params: any) {
  return request({
    url: `api/nav/updateNav.php`,
    method: "GET",
    params,
  });
}
export function DelNav(params: any) {
  return request({
    url: `api/nav/delNav.php`,
    method: "GET",
    params,
  });
}
export function getPowerNav(params: any) {
  return request({
    url: `api/nav/getPowerNav.php`,
    method: "GET",
    params,
  });
}

